POST
/
calculate
/
advanced
/
curl --request POST \
--url https://sandbox.prezio.eu/api/calculate/advanced/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"country": "DK",
"address": "Copenhagen, Denmark",
"tariff_id": "tar_45",
"period_start": "2025-01-01T00:00:00Z",
"period_end": "2025-01-31T23:59:59Z",
"inputs": [
{
"id": "energy-charge",
"value": [
{
"interval_start": "2025-01-01T00:00:00Z",
"amount": 1.5
},
{
"interval_start": "2025-01-01T01:00:00Z",
"amount": 2
}
]
},
{
"id": "Test_ON_PEAK",
"value": 50,
"tou": "ON_PEAK"
},
{
"id": "Test_OFF_PEAK",
"value": 45,
"tou": "OFF_PEAK"
},
{
"id": "capacity-charge",
"value": 75
},
{
"id": "reactive-power",
"value": 100,
"unit": "kvarh"
}
]
}'
{
"country": "DK",
"address": "Copenhagen, Denmark",
"tariff_id": "tar_45",
"period_start": "2025-01-01T00:00:00Z",
"period_end": "2025-01-31T23:59:59Z",
"inputs": [
{
"id": "energy-charge",
"value": [
{
"interval_start": "2025-01-01T00:00:00Z",
"amount": 1.5
},
{
"interval_start": "2025-01-01T01:00:00Z",
"amount": 2
}
]
},
{
"id": "Test_ON_PEAK",
"value": 50,
"tou": "ON_PEAK"
},
{
"id": "Test_OFF_PEAK",
"value": 45,
"tou": "OFF_PEAK"
},
{
"id": "capacity-charge",
"value": 75
},
{
"id": "reactive-power",
"value": 100,
"unit": "kvarh"
}
]
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

Main request serializer for the advanced calculate endpoint

Response

200
application/json

Successfully calculated prices

The response is of type object.